import { takeEvery } from 'redux-saga/effects';

import { fetchQueryData } from './query';
import { GET_QUERY_DATE } from '../redux/actionTypes/query';

import { fetchUserInfo } from './user';
import { GET_USER_INFO } from '../redux/actionTypes/user';

export default function* rootSaga() {
  yield takeEvery(GET_QUERY_DATE, fetchQueryData);
  yield takeEvery(GET_USER_INFO, fetchUserInfo);
}
